﻿Imports DAO
Imports DTO
Imports System.Data
Public Class DangNhapBUS
    Dim dt As New DataTable()
    Dim hd As New DangNhapDAO()
    Public Shared Function GetByID(ByVal id As String) As DangNhapDTO
        Dim user As New DangNhapDAO()
        Return user.GetByID(id)
    End Function

    Shared Function laythongtin(ByVal user As DangNhapDTO) As DangNhapDTO
        Dim dndao As New DangNhapDAO()
        user = dndao.LayTTUser(user)
        Return user
    End Function

    Shared Sub THEM(ByVal pxdto As DangNhapDTO)
        Dim pgDAO As New DangNhapDAO()
        pgDAO.Them(pxdto)
    End Sub

    Function loadtk() As DataTable
        Return hd.loadtk()
    End Function

    Shared Sub XOA(ByVal nv As DangNhapDTO)
        Dim khDAO As New DangNhapDAO()
        khDAO.Xoa(nv)
    End Sub

End Class
